import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '@/router/constant';

const menu: AppRouteModule = {
  name: 'sys:manager',
  path: '/sys/manager',
  component: LAYOUT,
  meta: {
    title: '系统设置',
    icon: 'ant-design:setting-outlined',
    perms: ['admin', 'sys:manager'],
    orderNo: 100,
    component: 'LAYOUT',
  },
  children: [
    {
      name: 'sys:user:index',
      path: '/sys/user/index',
      component: () => import('@/views/sys/user/index.vue'),
      meta: {
        title: '用户管理',
        icon: 'ant-design:user-outlined',
        orderNo: 10,
        perms: ['admin', 'sys:user:index'],
        component: '/sys/user/index',
      },
    },
    {
      name: 'sys:role:index',
      path: '/sys/role/index',
      component: () => import('@/views/sys/role/index.vue'),
      meta: {
        title: '角色管理',
        icon: 'ant-design:team-outlined',
        orderNo: 20,
        perms: ['admin', 'sys:role:index'],
        component: '/sys/role/index',
      },
    },
    {
      name: 'sys:dept:index',
      path: '/sys/dept/index',
      component: () => import('@/views/sys/dept/index.vue'),
      meta: {
        title: '部门管理',
        icon: 'ant-design:apartment-outlined',
        orderNo: 60,
        perms: ['admin', 'sys:dept:index'],
        component: '/sys/dept/index',
      },
    },
    {
      name: 'sys:post:index',
      path: '/sys/post/index',
      component: () => import('@/views/sys/post/index.vue'),
      meta: {
        title: '岗位管理',
        icon: 'ant-design:share-alt-outlined',
        orderNo: 70,
        perms: ['admin', 'sys:post:index'],
        component: '/sys/post/index',
      },
    },
  ],
};
export default menu;
